import request from '@/utils/request'

// 首次查询入库查询列表
export function listFirst(query) {
  return request({
    url: '/system/BAK/first',
    method: 'get',
    params: query
  })
}

// 查询入库查询列表
export function listBAK(query) {
  return request({
    url: '/system/BAK/list',
    method: 'get',
    params: query
  })
}

// 查询入库查询详细
export function getBAK(lotId) {
  return request({
    url: '/system/BAK/' + lotId,
    method: 'get'
  })
}

// 新增入库查询
export function addBAK(data) {
  return request({
    url: '/system/BAK',
    method: 'post',
    data: data
  })
}

// 修改入库查询
export function updateBAK(data) {
  return request({
    url: '/system/BAK',
    method: 'put',
    data: data
  })
}

// 删除入库查询
export function delBAK(lotId) {
  return request({
    url: '/system/BAK/' + lotId,
    method: 'delete'
  })
}
